<div class="col-md-3 left">
	<div class="panel panel-fix">
		<div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-fire"></span> Danh mục sản phẩm</h3> </div>
		<div class="panel-body">
			<ul class="menu">
				<?php foreach($categories as $cate): ?>
				<li>
					<a href="<?= $this->webroot . $cate['Category']['als'] . '-c' . $cate['Category']['id'] . $ext ?>">
						<?= $cate['Category']['name'] ?>
						<?php if(!empty( $cate['Category']['childs'] )):?>
						<span class="fa fa-angle-right fa-2 fr"></span>
						<?php endif; ?>
					</a>

					<?php if(!empty( $cate['Category']['childs'] )):?>
					<ul>
						<?php foreach($cate['Category']['childs'] as $child): ?>
						<li>
							<a href="<?= $this->webroot . $child['Category']['als'] . '-c' . $child['Category']['id'] . $ext?>"> <?= $child['Category']['name'] ?></a>
						</li>
						<?php endforeach; ?>
					</ul>
					<?php endif; ?>
				</li>
				<?php endforeach; ?>
			</ul>
		</div>
	</div>
</div>